From f3cb6e2455795592d2ebca39633d1a3d17c48a1b Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 21 Sep 2004 18:12:29 +0000 Subject: [PATCH] Let waypt_dupe copy desc_short and desc_long so that Mapsource output of a PQ doesn't tank the KMA. --- gpsbabel/waypt.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gpsbabel/waypt.c b/gpsbabel/waypt.c index f91b503f2..9b5aa9c05 100644 --- a/gpsbabel/waypt.c +++ b/gpsbabel/waypt.c @@ -52,6 +52,14 @@ waypt_dupe(const waypoint *wpt) tmp->url_link_text = xstrdup(wpt->url_link_text); if (wpt->icon_descr && wpt->icon_descr_is_dynamic) tmp->icon_descr = xstrdup(wpt->icon_descr); + if (wpt->gc_data.desc_short.utfstring) { + tmp->gc_data.desc_short.utfstring = + xstrdup(tmp->gc_data.desc_short.utfstring); + } + if (wpt->gc_data.desc_long.utfstring) { + tmp->gc_data.desc_long.utfstring = + xstrdup(tmp->gc_data.desc_long.utfstring); + } /* * It's important that this duplicated waypoint not appear * on the master Q. -- 2.30.2